var axios = require('axios')
module.exports = class extends think.global.service {
    async indexAction() {
        console.log(JSON.parse(this.post().data))
        try {
            var result = await axios.post('http://m.weiceyan.com/Services/SurService.svc/ServiceS4', JSON.parse(this.post().data))
            console.log(result)
            this.json({
                data: result.data
            })
        } catch (e) {
            console.log(e)
            this.ctx.fail(1000, e.message)
        }
    }
};